package cn.edu.cqu.bysj.domains;

//import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
//import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="TrainInfo")
public class TrainInfo {
	@Id
	private String trainNo;
	private String startStationName;
	private String endStationName;
//	@OneToMany(mappedBy="trainInfo")
//	private List<StopStationInfo> stopStations;

	public String getTrainNo() {
		return trainNo;
	}
	public void setTrainNo(String trainNo) {
		this.trainNo = trainNo;
	}
	public String getStartStationName() {
		return startStationName;
	}
	public void setStartStationName(String startStationName) {
		this.startStationName = startStationName;
	}
	public String getEndStationName() {
		return endStationName;
	}
	public void setEndStationName(String endStationName) {
		this.endStationName = endStationName;
	}
//	public List<StopStationInfo> getStopStations() {
//		return stopStations;
//	}
//	public void setStopStations(List<StopStationInfo> stopStations) {
//		this.stopStations = stopStations;
//	}


}
